<!--
*Author：富行天下团队
 
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/Supplier/Mall_supplier_type.js此处编写
 -->
<template>
  <div>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormFileds="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormFileds="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from "@/extension/Supplier/Mall_supplier_type.js";
import ViewGrid from "@/components/basic/ViewGrid.vue";
var vueParam = {
  components: {
    ViewGrid
  },
  data () {
    return {
      table: {
        key: 'id',
        footer: "Foots",
        cnName: '供应商系统',
        name: 'Mall_supplier_type',
        url: "/Mall_supplier_type/",
        sortName: "id"
      },
      extend: extend,
      editFormFields: { "supplierType": "", "supplierBrand": "", "supplierBrandName": "", "systemCode": "", "systemName": "", "systemVersion": "" },
      editFormOptions: [[{ "dataKey": "SupplierType", "data": [], "title": "类别", "field": "supplierType", "type": "select" },
      { "title": "品牌编码", "field": "supplierBrand", "type": "text" },
      { "title": "品牌名称", "field": "supplierBrandName", "type": "text" }],
      [{ "title": "系统编码", "field": "systemCode", "type": "text" },
      { "title": "系统名称", "field": "systemName", "type": "text" },
      { "title": "系统版本号", "field": "systemVersion", "type": "text" }]],
      searchFormFields: { "supplierType": "", "supplierBrand": "", "supplierBrandName": "", "systemCode": "", "systemName": "", "systemVersion": "" },
      searchFormOptions: [[{ "title": "品牌名称", "field": "supplierBrandName", "type": "like" },{ "dataKey": "SupplierType", "data": [], "title": "类别", "field": "supplierType", "type": "select" }, { "title": "品牌编码", "field": "supplierBrand", "type": "like" }, ], [{ "title": "系统编码", "field": "systemCode", "type": "like" }, { "title": "系统名称", "field": "systemName", "type": "like" }, { "title": "系统版本号", "field": "systemVersion", "type": "like" }]],
      columns: [{ field: 'supplierType', title: '类别', type: 'string', bind: { key: 'SupplierType', data: [] }, width: 220, align: 'left', sortable: true },
      { field: 'supplierTypeNmae', title: '类别名称', type: 'string', width: 220, align: 'left' },
      { field: 'supplierBrand', title: '品牌编码', type: 'string', width: 220, align: 'left' },
      { field: 'supplierBrandName', title: '品牌名称', type: 'string', width: 220, align: 'left' },
      { field: 'systemCode', title: '系统编码', type: 'string', width: 220, align: 'left' },
      { field: 'systemName', title: '系统名称', type: 'string', width: 220, align: 'left' },
      { field: 'systemVersion', title: '系统版本号', type: 'string', width: 220, align: 'left' },
      { field: 'creator', title: '创建人', type: 'string', width: 180, align: 'left' },
      { field: 'createDate', title: '创建时间', type: 'datetime', width: 90, align: 'left', sortable: true },
      { field: 'modifier', title: '修改人', type: 'string', width: 180, align: 'left' },
      { field: 'modifyDate', title: '修改时间', type: 'datetime', width: 90, align: 'left', sortable: true },
      { field: 'createID', title: '创建人ID', type: 'int', width: 90, hidden: true, align: 'left' },
      { field: 'id', title: '主键', type: 'int', width: 90, hidden: true, readonly: true, require: true, align: 'left' },
      { field: 'modifyID', title: '修改人ID', type: 'int', width: 90, hidden: true, align: 'left' }],
      detail: {
        cnName: "#detailCnName",
        columns: [],
        sortName: "",
        key: ""
      }
    };
  }
};
export default vueParam;
</script>
